package com.jianying.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Settlement {
	
	private Integer id;
	
	private String uuid;
	
	private String title;
	
	private Integer sellerId;
	
	private String sellerName;
	
	private Integer supplierId;
	
	private String supplierName;
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date settleAt;
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date confirmAt;
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date payoffAt;
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date verifyAt;
	
	private Double amount;
	
	private Double payAmount;
	
	private Integer orderQuantity;

	private Integer productQuantity;
	
    private Integer clientId;
	
	private String clientName;
	
	private Integer settlerId;
	
	private String settlerName;
	
    private Integer settlerTenantId;
	
	private Integer clientTenantId;
	
	private String currency;
	
	public Double getPayAmount() {
		return payAmount == null ? 0.0 : payAmount;
	}

	public void setPayAmount(Double payAmount) {
		this.payAmount = payAmount;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getSellerId() {
		return sellerId;
	}

	public void setSellerId(Integer sellerId) {
		this.sellerId = sellerId;
	}

	public String getSellerName() {
		return sellerName;
	}

	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}

	public Integer getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(Integer supplierId) {
		this.supplierId = supplierId;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public Date getSettleAt() {
		return settleAt;
	}

	public void setSettleAt(Date settleAt) {
		this.settleAt = settleAt;
	}

	public Date getConfirmAt() {
		return confirmAt;
	}

	public void setConfirmAt(Date confirmAt) {
		this.confirmAt = confirmAt;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	public Date getPayoffAt() {
		return payoffAt;
	}

	public void setPayoffAt(Date payoffAt) {
		this.payoffAt = payoffAt;
	}

	public Integer getOrderQuantity() {
		return orderQuantity;
	}

	public void setOrderQuantity(Integer orderQuantity) {
		this.orderQuantity = orderQuantity;
	}

	public Integer getProductQuantity() {
		return productQuantity;
	}

	public void setProductQuantity(Integer productQuantity) {
		this.productQuantity = productQuantity;
	}

	public Date getVerifyAt() {
		return verifyAt;
	}

	public void setVerifyAt(Date verifyAt) {
		this.verifyAt = verifyAt;
	}

	public Integer getClientId() {
		return clientId;
	}

	public void setClientId(Integer clientId) {
		this.clientId = clientId;
	}

	public String getClientName() {
		return clientName;
	}

	public void setClientName(String clientName) {
		this.clientName = clientName;
	}

	public Integer getSettlerId() {
		return settlerId;
	}

	public void setSettlerId(Integer settlerId) {
		this.settlerId = settlerId;
	}

	public String getSettlerName() {
		return settlerName;
	}

	public void setSettlerName(String settlerName) {
		this.settlerName = settlerName;
	}

	public Integer getSettlerTenantId() {
		return settlerTenantId;
	}

	public void setSettlerTenantId(Integer settlerTenantId) {
		this.settlerTenantId = settlerTenantId;
	}

	public Integer getClientTenantId() {
		return clientTenantId;
	}

	public void setClientTenantId(Integer clientTenantId) {
		this.clientTenantId = clientTenantId;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}
	
}
